<?php


namespace App\Http\Responses;


class ResponseCode
{
    const  SUCCESS = [
        "code" => 2000,
        "message" => "success"
    ];

    const INSERT_SUCCESS = [
        "code" => 2001,
        "message" => "insert success"
    ];

    const UPDATE_SUCCESS = [
        "code" => 2002,
        "message" => "update success"
    ];

    const DELETE_SUCCESS = [
        "code" => 2003,
        "message" => "delete success"
    ];

    const NOT_FOUND = [
        "code" => 4001,
        "message" => "the record was not found"
    ];

    const INSERT_ERROR = [
        "code" => 5001,
        "message" => "insert error"
    ];

    const UPDATE_ERROR = [
        "code" => 50002,
        "message" => "update error"
    ];

    const DELETE_ERROR = [
        "code" => 5003,
        "message" => "delete error"
    ];

}